<?php

namespace App\RBAC;

use Illuminate\Database\Eloquent\Model;

class Article extends Model
{
    protected $fillable = [
        'title', 'markdown','html','user_id','category_id','status','description'
    ];

    /**
     * Get the category
     */
    public function category()
    {
        return $this->belongsTo('App\RBAC\Category');
    }

    /**
     * Get the user.
     */
    public function user()
    {
        return $this->belongsTo('App\User');
    }   
}
